package jp.co.piratealliance.pirateAllianceWeb.web.action.goods;

import java.util.List;

import jp.co.piratealliance.pirateAllianceWeb.common.base.BaseAction;
import jp.co.piratealliance.pirateAllianceWeb.dto.goods.GoodsInfoDto;
import jp.co.piratealliance.pirateAllianceWeb.service.goods.GoodsService;


/**
 * copyright pirate alliance team 2014
 *
 * @author lunxing
 */

public class GetGoodsListAction extends BaseAction {
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	private GoodsService goodsService;

	private List<GoodsInfoDto> goodsList;

	private int goods_type_id;

	private String area_id;

	private String language_id;

	private int start_row;

	private int end_row;

	private String order_id;

	private GoodsInfoDto goodsInfoDto;

	public String getGoodsInfoList()
	{
		this.goodsList = this.goodsService.getGoodsList(this.goods_type_id, this.area_id, this.language_id, this.start_row, this.end_row);
		return SUCCESS;
	}

	public String getGoodsInfo()
	{
		this.goodsInfoDto = this.goodsService.getGoodsByOrderId(order_id);
		return SUCCESS;
	}

	/**
	 * @return the goodsService
	 */
	public GoodsService getGoodsService() {
		return goodsService;
	}

	/**
	 * @param goodsService the goodsService to set
	 */
	public void setGoodsService(GoodsService goodsService) {
		this.goodsService = goodsService;
	}

	/**
	 * @return the goodsList
	 */
	public List<GoodsInfoDto> getGoodsList() {
		return goodsList;
	}

	/**
	 * @param goodsList the goodsList to set
	 */
	public void setGoodsList(List<GoodsInfoDto> goodsList) {
		this.goodsList = goodsList;
	}

	/**
	 * @return the goods_type_id
	 */
	public int getGoods_type_id() {
		return goods_type_id;
	}

	/**
	 * @param goods_type_id the goods_type_id to set
	 */
	public void setGoods_type_id(int goods_type_id) {
		this.goods_type_id = goods_type_id;
	}

	/**
	 * @return the area_id
	 */
	public String getArea_id() {
		return area_id;
	}

	/**
	 * @param area_id the area_id to set
	 */
	public void setArea_id(String area_id) {
		this.area_id = area_id;
	}

	/**
	 * @return the language_id
	 */
	public String getLanguage_id() {
		return language_id;
	}

	/**
	 * @param language_id the language_id to set
	 */
	public void setLanguage_id(String language_id) {
		this.language_id = language_id;
	}

	/**
	 * @return the start_row
	 */
	public int getStart_row() {
		return start_row;
	}

	/**
	 * @param start_row the start_row to set
	 */
	public void setStart_row(int start_row) {
		this.start_row = start_row;
	}

	/**
	 * @return the end_row
	 */
	public int getEnd_row() {
		return end_row;
	}

	/**
	 * @param end_row the end_row to set
	 */
	public void setEnd_row(int end_row) {
		this.end_row = end_row;
	}

	public String getOrder_id()
	{
		return order_id;
	}

	public void setOrder_id(String order_id)
	{
		this.order_id = order_id;
	}

	public GoodsInfoDto getGoodsInfoDto()
	{
		return goodsInfoDto;
	}

	public void setGoodsInfoDto(GoodsInfoDto goodsInfoDto)
	{
		this.goodsInfoDto = goodsInfoDto;
	}
}
